//
//  PropertyDictModel.m
//  Utils
//
//  Created by enghou on 2018/4/16.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "PropertyDictModel.h"
#import "BaseItemModel.h"
@implementation PropertyDictModel
-(void)getContent:(NSDictionary *)dict withClass:(Class)cls{
    NSMutableArray *tmpArray = [NSMutableArray array];
    NSDictionary *data = [dict objectForKey:@"data"];
    NSArray *dicts = [data objectForKey:@"dicts"];
    for (NSDictionary *element in dicts) {
        BaseItemModel *model = [[cls alloc]initWithSource:element];
        [tmpArray addObject:model];
    }
    self.list = [tmpArray copy];
}
@end
